package cn.ithers.blog.controller.portal;

import cn.ithers.blog.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhanghuan
 * @date: 2020/9/24 15:34
 * @description:
 */
@Api(value = "错误页面处理", tags = "错误处理")
@RestController
public class ErrorPageController {

    @ApiOperation(value = "404页面处理", notes = "")
    @GetMapping("/404")
    public ResponseResult page404(){
        return ResponseResult.ERROR_404();
    }
    @ApiOperation(value = "405页面处理", notes = "")
    @GetMapping("/405")
    public ResponseResult page405(){
        return ResponseResult.ERROR_405();
    }

    @ApiOperation(value = "403页面处理", notes = "")
    @GetMapping("/403")
    public ResponseResult page403(){
        return ResponseResult.ERROR_403();
    }

    @ApiOperation(value = "500页面处理", notes = "")
    @GetMapping("/500")
    public ResponseResult page500(){
        return ResponseResult.ERROR_500();
    }

    @ApiOperation(value = "504页面处理", notes = "")
    @GetMapping("/504")
    public ResponseResult page504(){
        return ResponseResult.ERROR_504();
    }

    @ApiOperation(value = "505页面处理", notes = "")
    @GetMapping("/505")
    public ResponseResult page505(){
        return ResponseResult.ERROR_505();
    }
}
